|
|
|
|
|
|
|
|
SourceSafe is a system that helps ensure that project source files are properly protected and backed up, and it helps organize different versions of source files. For now, just answer No to this question.  |
|
|
|
|
|
|
|
|
|
|
Getting Information from the User |
|
|
|
|
|
|
|
|
Most computer programs are interactivethey need to receive information from the user as well as provide information to the user. A Visual Basic program interacts with its user through controls that are placed on the program's form(s). A control is an object you place on a form that interacts with the user or the program. Many of Visual Basic's controls can be used to obtain input from the user. |
|
|
|
|
|
|
|
|
The user interface for the Loan Calculator program will be responsible for accepting input, displaying output, and initiating the loan calculations. You use three of Visual Basic's most commonly used controls: |
|
|
|
|
|
|
|
|
TextBox controls to accept textual information needed from the user, and to display certain information back to the user. |
|
|
|
|
|
|
|
|
Label controls to act as captions, displaying information to the user. Labels are similar to TextBoxes, except that the user can't edit the information presented in them. |
|
|
|
|
|
|
|
|
CommandButton controls, which the user can click to initiate program actions. |
|
|
|
|
|
|
|
|
All these controls are part of the basic set of controls found in Visual Basic's Toolbox (see Figure 2.7). |
|
|
|
|
|
|
|
|
Figure 2.7
Visual Basic's Toolbox contains the
controls needed to build applications. |
|
|
|
|
|
|
|
|
The TextBox control, also known simply as a text box, is (as its name implies) a box that displays and accepts text. In a way, it's similar to a text box you might find on a survey form. It can accept input (from a pen or pencil) as well as display information. The TextBox control is one example of how far programming languages have advanced. Earlier programming environments required a lot of work to exchange information with the user. Visual Basic works in |
|
|
|
|
|